package com.wp.design.visit;

public class VisitImpl implements IVisit {
	public void print(FreeCourse course) {
		System.out.println("免费课程"+course.getName());
	}

	public void print(CodeCourse course) {
		System.out.println("实战课程"+course.getName()+course.getPrice()+"元");
	}
}
